package Interfaces;


import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.ArrayList;

import Classes.Auth;
import Classes.Book;

public interface iLibrary extends Remote {
	/*
	 * Logins Functions
	 */
	public boolean loginAdmin ( Auth aut ) throws RemoteException;
	public boolean loginUser ( Auth aut ) throws RemoteException;
	
	/*
	 * Admins Manipulation Functions
	 */
	public boolean addBook ( Book B ) throws RemoteException;
	public boolean removeBook ( Book B ) throws RemoteException;
	
	
	/*
	 * Users Manipulation Functions
	 */
	public boolean borrowBook ( Book B ) throws RemoteException;
	public boolean returnBook ( Book B ) throws RemoteException;

	
	/*
	 * Commons Manipulation Functions
	 */
	public ArrayList<Book> listOfBooks() throws RemoteException;
	
}
